#ifndef __EKF_IOAPIC_I_H__
#define __EKF_IOAPIC_I_H__

struct ioapic_s
{
	 int apic_id;
	 physaddr_t phys;
	 uint32_t intr_base;
};

extern volatile struct ioapic_s ioapics[LAPIC_COUNT];

int ioapic_init(void);
void ioapic_send_eoi(int irq);
void ioapic_enable(void *ioapic, int irq, int cpunum);
void ioapic_disable(void *ioapic, int irq);

#endif
